<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<title>订单调价</title>
 <%@ include file="/page/include.jsp" %>
</head>
<link rel="stylesheet" type="text/css" href="${rootPath}/statics/plugins/zTree/css/zTreeStyle/zTreeStyle.css" />
<style type="text/css">
.error {
	color: red;
	padding-left: 10px;
}
</style>
<body class="nav-md" >
    <div class="container body">
      <div class="main_container">
        
        <div class="row">
			<div class="col-md-12 col-sm-12 col-xs-12">
				<div class="x_panel">
					<div class="x_content">
						<div class="row">
							<input type="hidden"  id="orderCode"  name="orderCode"  value="${orderCode}"/>
							<table id="orderProductDetailTable" class="table"></table>
						</div>
						<div class="row" style="margin-top:10px;">
							<div class="col-md-7 col-sm-7 col-xs-7 "></div>
							<div class="col-md-5 col-sm-5 col-xs-5 ">
								<label class="col-md-5 col-sm-5 col-xs-5" style='text-align:right;'>商品总计:</label>
								<label class="col-md-7 col-sm-7 col-xs-7" >￥<span id='totalProductMoneyShow'><fmt:formatNumber type='number' value='${totalProductMoney == null ? 0 : totalProductMoney}' pattern='0.00' /></span></label>
							</div>
						</div>
						<div class="row" style="display:none;">
							<div class="col-md-7 col-sm-7 col-xs-7 "></div>
							<div class="col-md-5 col-sm-5 col-xs-5 ">
								<label class="col-md-5 col-sm-5 col-xs-5" style='text-align:right;'>商品调价差额:</label>
								<label class="col-md-7 col-sm-7 col-xs-7" >￥<span id="totalProductAdjustMoneyShow"><fmt:formatNumber type='number' value='${totalDiffMoney}' pattern='0.00' /></span></label>
							</div>
						</div>
						<div class="row">
							<div class="col-md-7 col-sm-7 col-xs-7 "></div>
							<div class="col-md-5 col-sm-5 col-xs-5 ">
								<input type="hidden"  id="orderDiscountMoney"  value="${order.promotionDiscountMoney}"/>
								<label class="col-md-5 col-sm-5 col-xs-5" style='text-align:right;'>活动优惠金额:</label>
								<label class="col-md-7 col-sm-7 col-xs-7" >￥<span><fmt:formatNumber type='number' value='${order.promotionDiscountMoney == null ? 0 : order.promotionDiscountMoney}' pattern='0.00' /></span></label>
							</div>
						</div>
						<div class="row">
							<div class="col-md-7 col-sm-7 col-xs-7 "></div>
							<div class="col-md-5 col-sm-5 col-xs-5 ">
								<input type="hidden"  id="orderCouponMoney"  value="${order.couponMoney}"/>
								<label class="col-md-5 col-sm-5 col-xs-5" style='text-align:right;'>优惠券抵扣金额:</label>
								<label class="col-md-7 col-sm-7 col-xs-7" >￥<span><fmt:formatNumber type='number' value='${order.couponMoney == null ? 0 : order.couponMoney}' pattern='0.00' /></span></label>
							</div>
						</div>
						<div class="row">
							<div class="col-md-7 col-sm-7 col-xs-7 "></div>
							<div class="col-md-5 col-sm-5 col-xs-5 ">
								<label class="col-md-5 col-sm-5 col-xs-5" style='text-align:right;'>积分抵扣金额:</label>
								<input type="hidden"  id="orderPointMoney"  value="${order.pointsMoney}"/>
								<label class="col-md-7 col-sm-7 col-xs-7" >￥<span><fmt:formatNumber type='number' value='${order.pointsMoney == null ? 0 : order.pointsMoney}' pattern='0.00' /></span></label>
							</div>
						</div>
						<div class="row">
							<div class="col-md-7 col-sm-7 col-xs-7 "></div>
							<div class="col-md-5 col-sm-5 col-xs-5 ">
								<div class="col-md-5 col-sm-5 col-xs-5" style='text-align:right;' >
									<label>请输入运费:</label>
								</div>
								<div class="col-md-7 col-sm-7 col-xs-7">
									<input class="form-control" id="deliveryFeeMoney" type="text" value="<fmt:formatNumber type='number' value='${order.deliveryFeeMoney }' pattern='0.00' />" onkeyup="updateOrderDeliveryFeeMoney()"/>
								</div>
							</div>
						</div>
						<div class="row" style="margin-top:10px;">
							<div class="col-md-7 col-sm-7 col-xs-7 "></div>
							<div class="col-md-5 col-sm-5 col-xs-5 ">
								<div class="col-md-5 col-sm-5 col-xs-5" style='text-align:right;' >
									<label>订单总额调整:</label>
								</div>
								<div class="col-md-7 col-sm-7 col-xs-7">
									<input class="form-control" id="orderAdjustPrice" type="text" value="${order.adjustOrderMoney == null ? 0 :order.adjustOrderMoney }" onkeyup="updateOrderMoney()" />
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-7 col-sm-7 col-xs-7 "></div>
							<div class="col-md-5 col-sm-5 col-xs-5 ">
								<input type="hidden"  id="orderRealPayMoney" value="${order.realPayMoney}"/>
								<label class="col-md-5 col-sm-5 col-xs-5" style='text-align:right;'>应付:</label>
								<label class="col-md-7 col-sm-7 col-xs-7" style='color:#FC5457;'><span id="orderRealPayMoneyShowLabel">￥</span><span id="orderRealPayMoneyShow"><fmt:formatNumber type='number' value='${order.realPayMoney }' pattern='0.00' /></span></label>
							</div>
						</div>
						<div class="row">
							<div class="col-md-7 col-sm-7 col-xs-7 "></div>
							<div class="col-md-5 col-sm-5 col-xs-5 ">
								<label class="col-md-5 col-sm-5 col-xs-5" style='text-align:right;'>调价原因:</label>
								<label class="col-md-7 col-sm-7 col-xs-7" >
									<textarea id="adjustReason" class="form-control" rows="5" cols="10">${order.adjustReason }</textarea>
								</label>
							</div>
						</div>
						<div class="row">
							<div  class="col-md-12 col-sm-12 col-xs-12" style="border:1px solid #EDF1F7;" >
							</div>
							<div class="col-md-12 col-sm-12 col-xs-12" style="margin-top:20px;">
								<input id="btn_confirm_adjust_price" type="button" class="btn btn-danger pull-right" value="确定"/>
							</div>
						</div>
					</div>
				</div>
			</div>
      </div>
      <div class="row">
      	
      </div>
    </div>
  </body>
  <script type="text/javascript"  src="${rootPath}/statics/js/custom.js"></script>
  <script type="text/javascript"  src="${rootPath}/js/order/order_adjust_price.js"></script>
</html>